package com.sunlands.zlcx.usercenter.client;

import com.alibaba.fastjson.JSONObject;
import com.sunlands.zlcx.usercenter.client.bean.PushDTO;
import com.sunlands.zlcx.usercenter.config.OauthFeignConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "desk-mate-push", configuration = OauthFeignConfig.class)
public interface DeskMatePushService {

    /**
     * push信息
     * @param pushDTO
     * @return JSONObject
     */
    @PostMapping(value = "/push")
    JSONObject push(@RequestBody PushDTO pushDTO);
}
